import request from '@/utils/http'

const baseUrl = process.env.VUE_APP_JAVA_URL
const combineUrl = function (url) {
  return baseUrl + url
}
const api = {
  logout: combineUrl('/user/logout'),
  getUserThumbAvatar: combineUrl('/user/getUserThumbAvatar')
}

export function logout (params) {
  return request({
    url: api.logout,
    method: 'post',
    data: params
  })
}

export function getUserThumbAvatar (params) {
  return request({
    url: api.getUserThumbAvatar,
    method: 'post',
    data: params
  })
}
